require("babel-core/register")

const Koa = require('koa')
const app = new Koa()
const bodyparser = require('koa-bodyparser')
const cors = require('koa-cors')

app.use(cors()) //激活跨域
app.use(bodyparser())
let routerController = require('./routerController')
routerController(app)

app.listen(5000)
console.log('koa in port 5000')